﻿namespace TheoryProject
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Windows.Forms;

    /// <summary>
    /// main Program
    /// </summary>
    public static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        public static void Main()
        {
            /*Task1.Transition[] trans = new Task1.Transition[3];
            trans[0].state = 0;
            trans[0].inputChar = '0';
            trans[0].nextState = 0;
            trans[0].outputChar = '0';
            trans[0].direction = Task1.Direction.RIGHT;

            trans[1].state = 0;
            trans[1].inputChar = '1';
            trans[1].nextState = 0;
            trans[1].outputChar = '1';
            trans[1].direction = Task1.Direction.RIGHT;

            trans[2].state = 0;
            trans[2].inputChar = '\0';
            trans[2].nextState = 1;
            trans[2].outputChar = '0';
            trans[2].direction = Task1.Direction.STAY;

            int[] final = { 1 };
            List<char> inp = new List<char>();
            inp.Add('1');
            inp.Add('1');
            inp.Add('0');
            Task1.TuringMachine tm = new Task1.TuringMachine(trans,inp , final);
            SimulationForm sim = new SimulationForm(tm);
            Application.Run(sim);*/
            /*if (tm.Process())
             * {
                string s="";
                for (int i = 0; i < tm.tape.Count; i++)
                {
                    s += tm.tape[i];
                    s += "  ";
                }
                MessageBox.Show(s);

            }*/
            
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

             // Application.Run(new Form1());
            Application.Run(new MainFrom());
            
             // List<char> t = new List<char>();
             // t.Insert(0, 'a');
             // t.Insert(1, 'b');
             // t.Insert(2, 'c');
             // t.Insert(3, 'd');
             // string s="";
             // for (int i = 0; i < t.Count; i++)
             // {
             //     s += t[i];
             //     s += "  ";
             // }
             // MessageBox.Show(s);
             // t.Insert(0, 'H');
             // t.Insert(0, 'i');
             // t.Insert(0, 'j');
             // s = "";
             // for (int i = 0; i < t.Count; i++)
             // {
             //     s += t[i];
             //     s += "  ";
             // }
             // MessageBox.Show(s);
        }
    }
}
